package com.utils;

public class StringUtils {

	public static int lastIndexOfAny(String str, char[] search)
	{
		int index = -1;
		
		if ((str == null) || (search == null)) {
	          return -1;
	      }
	      int sz = search.length;
	      int tmp = 0;
	      for (int i = 0; i < sz; i++) {
	          char searchChar = search[i];
	          if (search == null) {
	              continue;
	          }
	          tmp = str.lastIndexOf(searchChar);
	          if (tmp > index) {
	              index = tmp;
	          }
	      }
		
		return index;
	}
}